package com.sporadic.desk.service;

import bo.KeepOrderDetailsBO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sporadic.desk.pojo.OrderDetails;

/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-10-24 10:13
 **/
public interface OrderDetailsService extends IService<OrderDetails> {
    /**
     * 添加订单详情
     *
     * @param orderDetails 订单详情信息
     * @return
     */
    boolean addOrderDetails(OrderDetails orderDetails);

    /**
     * 加菜
     * @param keepOrderDetailsBO 新加的菜品
     * @return 添加结果成功 或 失败
     */
    boolean keepOrderDetails(KeepOrderDetailsBO keepOrderDetailsBO);

    /**
     * 根据订单详情菜品id删除
     * @param detailId 订单详情商品id
     * @return true false 是否成功
     */
    boolean delOrderDetails(Integer detailId);

}
